package main

import (
	"fmt"
	"regexp"
)

func main2() {
	//test11()
	test12()
}

func test12() {
	re := regexp.MustCompile(`<span>(\W+)</span>`)
	params := re.FindStringSubmatch("<span>一二三四五</span>")

	for _, param := range params {
		fmt.Println(param)
	}
}

func test11() {
	re, _ := regexp.Compile(`a=(\d+),b=(\d+)`)
	c := re.ReplaceAllString("test regexp a=1234,b=5678. test regexp replace a=8765,b=3210 ", "c=$2,d=$1")

	fmt.Println(c)
}
